.attachment {
  width: 100%;
  background: #E7E8EB;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
  will-change: height;
  transition-duration: .3s;
  height: 100%;

  &-img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
    user-select: none;
    //object-fit: contain;
  }

  iframe {
    width: 100%;
    height: 100%;
  }

  &-check {
    position: absolute;
    right: 30px;
    top: 30px;
    display: none;
    width: 65px;
    height: 65px;

    &-been {
      display: inline-block;
    }
  }

  &-popup-button {
    font-size: 12px;
    color: #848484;
    padding: 0 9px;
    border: 1px solid #C5C4C5;
    box-shadow: 0 2px 3px 0 rgba(66, 71, 160, 0.15);
    position: absolute;
    right: 20px;
    bottom: 10px;

    &:focus {
      background: #fff;
    }
  }

  &-popup-content {
    width: 100%;
    height: 100%;
  }

  &-popup-image {
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: hidden;

    &:before {
      content: '';
      display: inline-block;
      vertical-align: middle;
      height: 100%;
    }

    iframe {
      width: 100%;
      height: 100%;
    }

    .attachment-check {
      top: 68px;
      right: 25px;
    }
  }

  &-popup.drag-dialog {
    top: 80px;
    left: 150px;

    .drag-dialog-content {
      width: 500px;
      height: calc(100vh - 200px);
    }
  }

}
